﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRMS_Model;

namespace HRMS.Models
{
    public class Examinations
    {
        public static void AddExamination(Examination examination)
        {
            using (var exmEntity = new HRMSEntities())
            {
                exmEntity.Examinations.AddObject(examination);
                exmEntity.SaveChanges();
            }
        }
        public static List<Examination> GetExaminations()
        {
            using (var exmEntity = new HRMSEntities())
            {
                return exmEntity.Examinations.ToList();
            }
        }
    }
}